<h2>Sign up as a new user!</h2>
<% @user.password = @user.password_confirmation = nil %>

<% form_for :user, :url => users_path do |f| -%>
  <%= f.error_messages %>
  <% field_set_tag do %>
    <ul>
      <li><%= f.label :login, "Login:" %><%= f.text_field :login %></li>
      <li><%= f.label :email, "Email:" %><%= f.text_field :email %></li>
      <li>
        <%= f.label :birthdate, "Birthdate:" %>
        <%= f.date_select :birthdate, :start_year => Time.now.year - 100, :end_year => Time.now.year - 13, :default => Time.now - 13.years %>
      </li>
      <li><%= f.label :password, "Password:" %><%= f.password_field :password %></li>
      <li><%= f.label :password_confirmation, "Confirm:" %><%= f.password_field :password_confirmation %></li>
      <li><%= f.submit 'Sign up!', :id => "submit" %></li>
    </ul>
  <% end %>
<% end -%>